<template>
  <div class="container">
    <parent-slot>
      <template v-slot="data">
        <div>外部插槽内容{{ data }}</div>
      </template>
    </parent-slot>
  </div>
</template>

<script>
import ParentSlot from '../components/ParentSlot.vue'

export default {
  name: 'SlotDemo',
  data() {
    return {}
  },
  props: {},
  components: { ParentSlot },
  watch: {},
  computed: {},
  methods: {},
  created() {},
  mounted() {
    // console.log('外部文件', this.$slots, this.$scopedSlots)
  },
}
</script>

<style scoped lang="scss"></style>
